//
//  NewsCell.m
//  NewsReader
//
//  Created by zhouxiaobo on 15/11/5.
//  Copyright © 2015年 mapath. All rights reserved.
//

#import "NewsCell.h"
#import "NewsInfo.h"
#import "FxDownload.h"

@implementation NewsCell

- (void)setCellData:(NewsInfo *)info
{
    [super setCellData:info];
    
    _desc.numberOfLines = 2;
    _desc.text = info.desc;
    
    //[[FxDownload download] setNewsIcon:info imageView:_imageView];
    NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:info.iconUrl]];
    _imageView.image = [UIImage imageWithData:imageData];
}


@end
